package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author du
 * date 2018/7/29 下午7:11
 */
public class CourseResult extends ListDataEntity implements Parcelable {
    private List<CourseEntity> list;
    private String keywords;//关键词    搜索接口

    public List<CourseEntity> getList() { return list;}

    public void setList(List<CourseEntity> list) { this.list = list;}

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeTypedList(this.list);
        dest.writeString(this.keywords);
    }

    public CourseResult() {}

    protected CourseResult(Parcel in) {
        super(in);
        this.list = in.createTypedArrayList(CourseEntity.CREATOR);
        this.keywords = in.readString();
    }

    public static final Creator<CourseResult> CREATOR = new Creator<CourseResult>() {
        @Override
        public CourseResult createFromParcel(Parcel source) {return new CourseResult(source);}

        @Override
        public CourseResult[] newArray(int size) {return new CourseResult[size];}
    };

}
